<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body >
		<p id = "id2" ></p>
		<script>
			var str;
			var obj = new Object();
			obj.name = "朗小明";
			obj.age = "38";
			obj.job = "中国内地男歌手";
			obj.address = "中国北京海淀区";
			obj.intro = function(){
				str = "姓名："+this.name+"<br/>年龄:"+this.age+"<br/>工作："+this.job+"<br/>住址"+this.address;
			}
			obj.intro();
			document.getElementById("id2").innerHTML = str;
		</script>
	</body>
	
</html>
